import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../views/HomeView.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/animal",
    name: "animal",
    component: () => import("../views/Animal.vue"),
  },
  {
    path: "/research",
    name: "research",
    component: () => import("../views/Research.vue"),
  },
  // 购物车
  {
    path: "/consoul",
    name: "consoul",
    component: () => import("../views/top-banner.vue"),
  },
  {
    path: "/strategy",
    name: "Strategy",
    component: () => import("../views/Strategy.vue"),
  },
  {
    path: "/travel",
    name: "Travel",
    component: () => import("../views/Travel.vue"),
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("../views/Login.vue"),
  },
  {
    path: "/activity",
    component: () => import("../views/Activity.vue"),
  },
  {
    path: "/alayaiew",
    component: () => import("../views/PlayView.vue"),
  },
  {
    path: "/perform",
    name: "Perform",
    component: () => import("../views/perform.vue"),
  },
  {
    path: "/zooyanyi",
    name: "zooplay",
    component: () => import("../views/ZooPlay.vue"),
  },
  {
    path: "/zooplay",
    name: "zooplay",
    component: () => import("../views/ZooPlay.vue"),
  },
  {
    path: "/zooindex",
    name: "zooindex",
    component: () => import("../views/Zooindex.vue"),
  },
  {
    path: "/",
    name: "zooindex",
    component: () => import("../views/Zooindex.vue"),
  },

  {
    path: "/about",
    name: "about",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/AboutView.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
